package com.mmall.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.Cart;

import java.util.List;

@Mapper
public interface CartMapper {

    Cart selectCartByUserIdProductId(@Param(value = "userId") Integer userId, @Param(value = "productId") Integer productId);

    int insert(Cart record);

    int updateByPrimaryKey(Cart record);

    int updateByPrimaryKeySelective(Cart record);

    List<Cart> selectCheckedCartByUserId(Integer userId);
}
